<div id="page-layout"><div id="page-content">
        <div id="page-content-wrapper" >
            <div class="hastable">
                <div class="inner-page-title">
                    <h2>广告分类列表</h2>
                </div>
                <?php echo Message::get();?>
                <table cellspacing="0">
                    <thead>
                        <tr>
                            <td class="center"><input type="checkbox" class="checkbox" value=""/></td>
                            <td>ID</td>
                            <td>分类名称</td>
                            <td>操作</td>
                        </tr>
                    </thead>
                    <tbody>
                        
                        <?php if(isset($result)):?>
                        <?php foreach($result as $key=>$value):?>
                        <tr>  	  	
                            <td>
                                <input type="checkbox" class="checkbox" value=""/>
                            </td>
                            <td style="text-align: center">
                                <?php echo $value->id_category?>
                            </td>
                            <td>
                            <?php echo $value->name?>
                            </td>
                             
                            <td style="text-align: center">
                               <a href="<?php echo URL::base().'admin/adcategory/edit/'.$value->id_category?>">修改</a> | 
                              
                              <a href="<?php echo URL::base().'admin/adcategory/delete/'.$value->id_category?>">删除</a> | 
                              
                              <a href="/admin/news/edit"> 预览</a>
                             
                            </td>
                        </tr>
                        <?php endforeach?>
                       <?php endif?>
                    </tbody>
                    <tfoot>
                        <tr>
                            <td colspan="8">
                               <?php echo $page_view;?>
                            </td>

                        </tr>
                    </tfoot>
                </table>

            </div>
            <div class="clear"></div>

            <?php echo View::factory('admin/modules/modules_left')->render(); ?>

            <div class="clear"></div>
        </div>
        <div class="clear"></div>
    </div>
     <div class="clear"></div>	